package com.example.fresh_fruit.service;

import com.example.fresh_fruit.dto.OrderDto;
import com.example.fresh_fruit.entity.Orders;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author :飞天の鱼
 * @date : 2022/8/22 21:56
 */
@Repository
public interface OrdersService {
    List<Orders> selectAll();

    int insertOders(OrderDto orderDto);

    /**
     * @param orders
     * 检查团长是否合法
     * @return
     */
    int cheakOrders(Orders orders);

    /**
     * @return
     * 寻找到最新的订单
     */
    Integer findMaxId();


}
